<?php /* Smarty version 2.6.18, created on 2009-05-21 09:16:16
         compiled from ua-admin/product_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'ua-admin/product_index.html', 39, false),array('modifier', 'truncate', 'ua-admin/product_index.html', 82, false),array('modifier', 'date_format', 'ua-admin/product_index.html', 86, false),array('function', 'html_options', 'ua-admin/product_index.html', 53, false),array('function', 'cycle', 'ua-admin/product_index.html', 79, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>控制台_<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/popcalendar.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/jquery-1.1.3.1.pack.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/thickbox-compressed.js"></script>
<style type="text/css" media="all">
@import "<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/thickbox.css";
</style>
</head>

<body>
<a name="top" />
<!-- 位置 -->
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
<div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;产品库管理</div></td></tr>
</table>
<br />
<!-- 搜索 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="8"><div align="left">产品库搜索</div></td></tr>
<form name="searchfrm" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>
">
<tr>
	<td width="9%"><div align="right">会员编号:</div></td>
	<td width="15%"><input name="member[id]" type="text" id="memberid" value="<?php echo $_GET['member']['id']; ?>
"></td>
	<td width="10%"><div align="right">公司名称:</div></td>
	<td><input name="company[name]" type="text" id="companyname" value="<?php echo $_GET['company']['name']; ?>
"></td>
	<td><div align="right">产品名称:</div></td>
	<td colspan="2"><input name="product[name]" type="text" id="productname" value="<?php echo $_GET['product']['name']; ?>
"></td>
	<td>&nbsp;</td>
  </tr>
<tr>
  <td><div align="center">发布时间</div></td>
  <td><input type="text" name="FromDate" size="10" value='<?php echo ((is_array($_tmp=@$_POST['FromDate'])) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date3" readonly>
<a href="javascript:;" onclick='showCalendar(this, document.getElementById("date3"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
  <td><div align="center">到</div></td>
  <td><input type="text" name="ToDate" size="10" value='<?php echo ((is_array($_tmp=@$_POST['ToDate'])) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date4" readonly>
<a href="javascript:;" onclick='showCalendar(this, document.getElementById("date4"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
  <td><div align="center"></div></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td><div align="center">信息状态</div></td>
  <td><select name="product[status]" id="productstatus">
  <option value="-1">请选择</option>
      <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['CheckStatus'],'selected' => $this->_tpl_vars['smaty']['post']['product']['status']), $this);?>

    </select></td>
  <td><div align="center">商品类型</div></td>
  <td><select name="product[sort_id]" id="productsort_id">
  <option value="-1">请选择</option>
      <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['ProductSorts'],'selected' => $this->_tpl_vars['smaty']['post']['product']['sort_id']), $this);?>

    </select></td>
  <td colspan="4"><input name="search" type="submit" id="search" value="搜索" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
  </tr>
</form>
</table>
<!-- 标题 -->
<form name="listfrm" action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header" align="center"><td></td>
  <td>&nbsp;</td>
  <td><strong>产品名称</strong></td>
<td><strong>公司名称</strong></td>
<td><strong>上/下架</strong></td>
<td><strong>状　态</strong></td>
<td><strong>发布时间</strong></td>
<td><strong>操作</strong></td>
</tr>
<tbody id="menu_1" style="display: yes">
<!-- single product -->
<?php $_from = $this->_tpl_vars['ProductList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['plist'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['plist']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['p']):
        $this->_foreach['plist']['iteration']++;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values' => "#eeeeee,#ffffff"), $this);?>
" align="center">
<td><input type="checkbox" name="pid[]" value="<?php echo $this->_tpl_vars['p']['PID']; ?>
" onclick="uaCheckItem(this, 'pidAll')" id="lbl_<?php echo $this->_tpl_vars['p']['PID']; ?>
"></td>
<td align="left"><?php if ($this->_tpl_vars['p']['ProductPicture'] != ''): ?><a href="../media/attachment/<?php echo $this->_tpl_vars['p']['ProductPicture']; ?>
" title="<?php echo $this->_tpl_vars['p']['ProductName']; ?>
" class="thickbox" rel="trades"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/havepic.gif" border="0" alt="有图片" /></a><?php endif; ?><?php if ($this->_tpl_vars['p']['Ifcommend']): ?>&nbsp;<img src="../images/recommend.gif" border="0" alt="推荐产品" /><?php endif; ?></td>
<td align="left"><label for="lbl_<?php echo $this->_tpl_vars['p']['PID']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['p']['ProductName'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)); ?>
<?php if ($this->_tpl_vars['p']['CreateDate'] > $this->_tpl_vars['Today']): ?>&nbsp;<img src="./images/new2.gif" /><?php endif; ?></label></td>
<td><a href="./company.php?action=mod&id=<?php echo $this->_tpl_vars['p']['CID']; ?>
"><?php echo $this->_tpl_vars['p']['CompanyName']; ?>
</a></td>
<td><?php echo $this->_tpl_vars['BooleanVars'][$this->_tpl_vars['p']['ProductState']]; ?>
</td>
<td><?php echo $this->_tpl_vars['CheckStatus'][$this->_tpl_vars['p']['ProductStatus']]; ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['p']['CreateDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
<td><a href="./product.php?action=mod&id=<?php echo $this->_tpl_vars['p']['PID']; ?>
"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/mod.gif" border="0" /></a>&nbsp;<a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
product/content.php?id=<?php echo $this->_tpl_vars['p']['PID']; ?>
" title="点击预览" target="_blank"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/preview.gif" border="0" /></a></td>
</tr>
<?php endforeach; else: ?>
<tr bgcolor="#ffffff">
<td colspan="9" align="center"><strong>目前没有任何数据</strong></td>
</tr>
<?php endif; unset($_from); ?>
</tbody>
<!-- 操作列表 -->
<tr align="center"><td class="altbg2" colspan="9">
<br />
<div id="bottom_action" class="actions">
<ul>
<li><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/arrow_left.png" border="0" alt="选中项"></li>
<li><input type="checkbox" name="pidAll" id="pidAll" onClick="uaCheckAll(this, 'pid[]')"><label for="pidAll">全选/全不选</label></li>
<li><i>选中项 : </i></li>
<li><input type="image" name="del[t]" src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/truncate.gif" border="0" alt="删除" onClick="return confirmAction('确定删除吗?');" /></li>
<li>{<input type="image" name="check[t_1]" src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/checked.gif" border="0" alt="审核通过" /></li>
<li><input type="image" name="check[t_2]" src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/check_false.gif" border="0" alt="审核不通过" /></li>
<li><input type="image" name="check[t_0]" src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/waiting.gif" border="0" alt="设置为等待审核" /></li>
<li><input type="image" name="check[t_3]" src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/false.gif" border="0" alt="设置为无效" />}</li>
<li><input type="image" name="recommend[t]" src="../images/recommend.gif" border="0" alt="推荐产品" /></li>
</ul>
</div>
</td></tr>
<!-- 分页 -->
<tr align="center"><td class="altbg1" colspan="9"><?php echo $this->_tpl_vars['ByPages']; ?>
</td></tr>
<tr class="header" bgcolor="#ffffff">
<td colspan="6"></td>
<td><div align="center"><a title="返回顶部" href="#top"><img id="go_top" src="./images/go_top.gif" border="0" style="vertical-align:middle;"/></a></div></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<!-- end new style -->
</body>
</html>